/**
 * {
    path: '/', // url前缀
    component: resolve => { // 内容显示区
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-shouye', // 左边菜单栏图标
    meta: {
      title: '首页', // 页面title
      name: 'index' // 此字段用于权限判断与children第一个路由名称必须保持一致
    },
    multiple: true, // true表示多级菜单，因为与产品确认，所以最多两级; 默认没有
    hidden: true, // true不展示在菜单栏中
    children: [ // multiple为false情况下，默认第一个为数组元素为左侧菜单
      {
        path: '/index',
        name: 'index',
        component: resolve => {
          require(['src/views/school/first/index'], resolve)
        },
        hidden: true, // 当父级设置multiple时，该路由不会显示在菜单栏中
        meta: {
          title: '首页',
          name: 'index' // 此字段用于权限判断与当前路由名称必须保持一致
        }
      }
    ]
  }
 */
export default [
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-shouye',
    meta: {
      title: '首页',
      name: 'index'
    },
    children: [
      {
        path: '/index',
        name: 'index',
        component: resolve => {
          require(['src/views/school/first/index'], resolve)
        },
        meta: {
          title: '首页',
          name: 'index'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-jiaofeiguanli',
    meta: {
      title: '缴费管理',
      name: 'payProject'
    },
    children: [
      {
        path: '/pay-project',
        name: 'payProject',
        component: resolve => {
          require(['src/views/school/project/index'], resolve)
        },
        meta: {
          title: '缴费管理',
          name: 'payProject'
        }
      },
      {
        path: '/add-project',
        name: 'addProject',
        component: resolve => {
          require(['src/views/school/project/details'], resolve)
        },
        meta: {
          title: '新增缴费项目',
          name: 'addProject'
        }
      },
      {
        path: '/details-project',
        name: 'detailsProject',
        component: resolve => {
          require(['src/views/school/project/details'], resolve)
        },
        meta: {
          title: '编辑缴费项目',
          name: 'detailsProject'
        }
      },
      {
        path: '/modify-project',
        name: 'modifyProject',
        component: resolve => {
          require(['src/views/school/project/modify'], resolve)
        },
        meta: {
          title: '缴费项目详情',
          name: 'modifyProject'
        }
      },
      {
        path: '/pay-progress',
        name: 'payProgress',
        component: resolve => {
          require(['src/views/school/project/progress'], resolve)
        },
        meta: {
          title: '缴费进度',
          name: 'payProgress'
        }
      },
      {
        path: '/progress-lists',
        name: 'progressLists',
        component: resolve => {
          require(['src/views/school/project/progressLists'], resolve)
        },
        meta: {
          title: '缴费进度明细',
          name: 'progressLists'
        }
      },
      {
        path: '/progress-detail',
        name: 'progressDetail',
        component: resolve => {
          require(['src/views/school/project/payDetail'], resolve)
        },
        meta: {
          title: '缴费详情',
          name: 'progressDetail'
        }
      },
      {
        path: '/derate',
        name: 'derate',
        meta: {
          title: '项目减免',
          name: 'derate'
        },
        component: resolve => {
          require(['src/views/school/project/derate'], resolve)
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-xueshengguanli',
    meta: {
      title: '学生管理',
      name: 'studentManage'
    },
    children: [
      {
        path: '/student-manage',
        name: 'studentManage',
        component: resolve => {
          require(['src/views/school/student/index'], resolve)
        },
        meta: {
          title: '学生管理',
          name: 'studentManage'
        }
      },
      {
        path: '/student-drop-out',
        name: 'studentDropOut',
        component: resolve => {
          require(['src/views/school/student/dropOutStudent'], resolve)
        },
        meta: {
          title: '退学记录',
          name: 'studentDropOut'
        }
      },
      {
        path: '/student-add',
        name: 'studentAdd',
        meta: {
          title: '学生新增',
          name: 'studentAdd'
        },
        component: resolve => {
          require(['src/views/school/student/add'], resolve)
        }
      },
      {
        path: '/student-edit',
        name: 'studentEdit',
        meta: {
          title: '学生编辑',
          name: 'studentEdit'
        },
        component: resolve => {
          require(['src/views/school/student/edit'], resolve)
        }
      },
      {
        path: '/student-detail',
        name: 'studentDetail',
        meta: {
          title: '学生详情',
          name: 'studentDetail'
        },
        component: resolve => {
          require(['src/views/school/student/detail'], resolve)
        }
      },
      {
        path: '/payment-info',
        name: 'dropOutPaymentInfo',
        meta: {
          title: '缴费记录',
          name: 'dropOutPaymentInfo'
        },
        component: resolve => {
          require(['src/views/school/student/dropOutPaymentInfo'], resolve)
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    meta: {
      title: '结算报表',
      name: 'settlement'
    },
    icon: 'el-icon-self-duizhang',
    children: [
      {
        path: '/settlement',
        name: 'settlement',
        component: resolve => {
          require(['src/views/school/settlement/index'], resolve)
        },
        meta: {
          title: '结算报表',
          name: 'settlement'
        }
      },
      {
        path: '/settlement-detail',
        name: 'settlementDetail',
        component: resolve => {
          require(['src/views/school/settlement/detail'], resolve)
        },
        meta: {
          title: '结算明细',
          name: 'settlementDetail'
        }
      },
      {
        path: '/pay-list',
        name: 'payList',
        component: resolve => {
          require(['src/views/school/settlement/paylist'], resolve)
        },
        meta: {
          title: '缴费流水',
          name: 'payList'
        }
      },
      {
        path: '/pay-detail',
        name: 'settlementPayDetail',
        component: resolve => {
          require(['src/views/school/settlement/payDetail'], resolve)
        },
        meta: {
          title: '缴费详情',
          name: 'settlementPayDetail'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    meta: {
      title: '设置',
      name: 'basicSet'
    },
    icon: 'el-icon-setting',
    children: [
      {
        path: '/basic-set',
        name: 'basicSet',
        component: resolve => {
          require(['src/views/school/set/index'], resolve)
        },
        meta: {
          title: '设置',
          name: 'basicSet'
        }
      },
      {
        path: '/add-manager',
        name: 'addManager',
        component: resolve => {
          require(['src/views/school/set/manager'], resolve)
        },
        meta: {
          title: '添加管理员',
          name: 'addManager'
        }
      },
      {
        path: '/edit-manager',
        name: 'editManager',
        component: resolve => {
          require(['src/views/school/set/manager'], resolve)
        },
        meta: {
          title: '编辑管理员',
          name: 'editManager'
        }
      }
    ]
  }
]
